package com.chenshu.shop.mapper;

import com.chenshu.shop.model.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-06-06
 * Time：09:04
 */
@Mapper
public interface TypeMapper {
    public List<Type> selectAllTypes();

    public Integer deleteType(Integer id);

    public Integer addType(@Param("name") String name, @Param("num") Integer num);

    public Integer updateType(Type type);

    public Type selectTypeById(Integer id);
}
